package com.sharing.mapper;

import com.sharing.domain.Comments;
import com.sharing.domain.UserHobby;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author MingTian
 * @version 1.0
 * @description TODO
 * @date 2023/4/3 10:42
 */
@Mapper
public interface CommentMapper {

    Integer selectCommentsNumByUserId(Integer userId);

    List<Comments> selectCommentsByUserId(Integer userId, Integer page, Integer size);

    Integer selectCommentsNumByProductionId(Integer productionId);

    Integer selectCommentsNumByCommentId(Integer commentId);

    List<Comments> selectCommentsByCommentId(Integer commentId, Integer page, Integer size);

    List<Comments> selectCommentsByProductionId(Integer productionId, Integer page, Integer size);

    Comments selectCommentById(Integer commentId);

    Integer insertComment(Comments comments);

    Integer deleteComment(Integer id);

    Integer deleteCommentsByIds(List<Integer> ids);
}